package com.decent.common.entity.common;

import lombok.Data;
import lombok.ToString;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author: decent Gjh
 * @date: 2022/10/25/17:43
 * @description:
 */
@Data
@ToString
public class Brand {
    /**
     * 品牌id
     */
    @NotNull(message = "请输入品牌id ", groups = {Update.class, Delete.class})
    private Integer id;
    /**
     * 品牌名称
     */
    @NotEmpty(message = "品牌名称 ", groups = {Update.class, Insert.class})
    private String name;

    /**
     * 分类id
     */
    @NotNull(message = "分类id不能为null",groups = {Update.class, Insert.class})
    private Integer classifyId;
    /**
     * 品牌次序
     */
    @NotNull(message = "请输入品牌次序 ", groups = {Update.class, Insert.class})
    private Integer sort;
}
